home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4239 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.7 KB

  1. Path: Flex058.dBH.WAU.NL!joop.vandeWege
  2. From: joop.vandeWege@medew.ento.wau.nl (Joop van de Wege)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: 3 bugs in SAS/C v. 6.56
  5. Date: Mon, 26 Feb 1996 13:38:10 LOCAL
  6. Organization: ento
  7. Message-ID: <joop.vandeWege.554.000ADBEF@medew.ento.wau.nl>
  8. References: <4gjvvc$a3t@gjallar.daimi.aau.dk>
  9. NNTP-Posting-Host: flex058.dbh.wau.nl
  10. Keywords: SAS/C,bug
  11. X-Newsreader: Trumpet for Windows [Version 1.0 Rev B final beta #4]
  12.  
  13. In article <4gjvvc$a3t@gjallar.daimi.aau.dk> liborius@daimi.aau.dk (Per Liboriussen) writes:
  14. >From: liborius@daimi.aau.dk (Per Liboriussen)
  15. >Subject: 3 bugs in SAS/C v. 6.56
  16. >Date: 23 Feb 1996 09:04:44 GMT
  17. >Keywords: SAS/C,bug
  18.  
  19. >I have found 3 bugs in SAS/C version 6.56: Two cases of generating bad code,
  20. >and one case of refusing to compile a correct program. Below are descriptions
  21. >of the problems, including the smallest programs I have been able to find
  22. >which shows the bugs, and the commandlines used to compile. Hopefully someone
  23. >from SAS reads this (and puts out a 6.57 patch ;-) ).
  24.  
  25. [Examples deleted]
  26.  
  27. I tried the 3 examples with lcc and both 1 and 2 are compiled correctly. No 
  28. warning, no errors and example one prints 'ok'.
  29.  
  30. >This one might actually be less of a bug than the two other, because I think
  31. >the code in the example is broken. By providing a prototype for foo() and then
  32. >defining it old-style with a float argument, I believe it invokes undefined
  33. >behaviour.
  34. LCC quits with an error which says something like:
  35. redeclaration of ...(), previous on in line 1
  36.  
  37. I don't know what the standard says about mixing new and old style 
  38. declarations, but I like the error message better then broken code generation 
  39. :)
  40.  
  41. Joop
  42.  
  43.  
  44.  
  45. >--
  46. >Per Liboriussen
  47. >liborius@daimi.aau.dk
  48.  
  49.  
  50.